$(function () {
    function myFunction() {
        var rate = document.getElementById("payrate").value;
        var hours = document.getElementById("hours").value;
        var gross = hours * rate;
        var net = gross * .9;

        if (gross != null) {
            document.getElementById("demo").innerHTML = gross;
        }
        if (net != null) {
            document.getElementById("demo2").innerHTML = net;
        }

    }
}) 